﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LINQPad.Extensibility.DataContext;

namespace LINQPad.OpenAccess.Tests.UIApp.Mocks
{
    public class MockCustomTypeInfo : ICustomTypeInfo
    {
        #region ICustomTypeInfo Members

        public string CustomAssemblyPath { get; set; }

        public string CustomMetadataPath { get; set; }

        public string CustomTypeName { get; set; }

        public string GetAbsoluteCustomAssemblyPath( )
        {
            if ( CustomAssemblyPath == null )
                return null;
            return Path.GetFullPath( CustomAssemblyPath );
        }

        public string GetCustomTypeDescription( )
        {
            return this.CustomTypeName;
        }

        public string[] GetCustomTypesInAssembly( string baseTypeName )
        {
            throw new NotImplementedException( );
        }

        public string[] GetCustomTypesInAssembly( )
        {
            throw new NotImplementedException( );
        }

        public bool IsEquivalent( ICustomTypeInfo other )
        {
            return false;
        }

        #endregion
    }
}
